const LogModel = require('../../model/Log');
const moment = require('moment')
const Cart = require('../../model/Cart')

module.exports = {

    //获取日志列表
    getOneCart: async(req, res, next) => {
        try {
            let openid = req.body.openid
            let cart = await Cart.findOne({ openid: openid }).exec()
            return res.ok('获取购物车成功', cart)
        } catch (e) {
            next(e)
        }
    },


};